package com.sunrise.generico.entidade;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.Getter;
import lombok.Setter;

import com.sunrise.comunicacao.enums.TipoStatusSMS;
import com.sunrise.generico.entidade.iface.EntidadeNegocio;

@Entity
@Table(name = "destinatario_sms")
public class DestinatarioSMS implements EntidadeNegocio {


	/**
	 * 
	 */
	private static final long serialVersionUID = 2162105394389957515L;

	@Id
	@SequenceGenerator(name="pk_sequence",sequenceName="destinatario_sms_id_seq", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="pk_sequence")
	@javax.persistence.Column
	@Getter @Setter
	private Long id;
	
	@Column(name = "nome", length = 100, nullable = false)
	@Getter @Setter
	private String nome;

	@Column(name = "cpf", length = 14)
	@Getter @Setter
	private String cpf;
	
	@Column(name = "cnpj", length = 20)
	@Getter @Setter
	private String cnpj;
	
	@Column(name = "nomeFantasia", length = 100)
	@Getter @Setter
	private String nomeFantasia;
	
	@Column(name = "dataNascimento")
	@Getter @Setter
	private Date dataNascimento;
	
	@Column(name = "celular")
	@Getter @Setter
	private String celular;
	
	@Column(name = "email")
	@Getter @Setter
	private String email;

	@Enumerated
	@Getter @Setter
	private TipoStatusSMS status;
	
	@Transient
	@Getter @Setter
	private Boolean blacklist;
	
}
